package io.iec.edp.caf.shutdown;

import io.iec.edp.caf.commons.utils.SpringBeanUtils;
import lombok.var;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Map;

public class ShutDownApiImpl implements ShutDownApi {

    @Override
    public String cafShutDown(){
        var context = (ConfigurableApplicationContext)SpringBeanUtils.getApplicationContext();
        context.close();
        return "Shutting down, bye...";
    }
}
